package cn.wolfcode.luowowo.search.query;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class HotelSearchQuery extends SearchQueryObject {
    private String themeName;

    private String brand;

    private String destName;

    private String service;

    private String facility;

    private String typeName;

    private String level;

    public String[] getFacilities(){
        return facility.split(",");
    }

    public String[] getBrands(){
        return brand.split(",");
    }

    public String[] getTypeNames(){
        return typeName.split(",");
    }

    public Integer[] getLevels(){
        String[] strs = level.split(",");
        Integer[] levels = new Integer[strs.length];
        for (int i = 0; i < strs.length; i++) {
            levels[i] = Integer.valueOf(strs[i]);
        }
        return levels;
    }

}
